package com.winning.java.generic;

import java.util.ArrayList;
import java.util.List;

/**
 * @author: rqx
 * @create: 2023/6/5 9:50
 * @description:
 */
public class GenericMethod {
    public static <E> List<E> BuildList(E... items)
    {
        var list = new ArrayList<E>();
        for(var i = 0; i < items.length; i++)
        {
            list.add(items[i]);
        }
        return list;
    }
}
